<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<script type="text/javascript">
 $(document).ready(function(){ 
	$("#findForm").submit(function(){
		var id=$("#id").val();
		if(id==""){
			alert("아이디를 입력하세요");
			return false;
		}
	});
 });
    
</script> 
<form id="findForm" action="${initParam.root}member/find.do">
아이디 : <input type="text" name="id" id="id">
<input type="submit" value="검색">
</form>